<template>
	<view class="ad-banner"><image :src="src" mode="widthFix" @click="click"></image></view>
</template>

<script>
	export default {
		props: {
			src: {
				type: String,
				default: ''
			},
			url: {
				type: String,
				default: ''
			}
		},
		data() {
			return {
				
			};
		},
		methods: {
			click(){
				this.$emit('click',this.url)
			}
		}
	}
</script>

<style lang="scss">
	.ad-banner{
		padding: 0 30rpx;
		image{
			border-radius: 10rpx;
			width: 100%;
		}
	}
</style>